<?php 
class ActiveRecord extends CActiveRecord
{
	use BasicTrait;
	
	/**
	 * Returns the Oracle database connection used by this active record.
	 * @return OciDbConnection the Oracle database connection used by
	 * this active record.
	 */
	/*
	public function getDbConnection()
	{
		if(self::$db!==null) {
			return self::$db;
		} else {
			self::$db = Yii::app()->dbOracle;
			return self::$db;
		}
	}
	*/
	
	public function getFieldLabel($field)
	{
		$labels = $this->attributeLabels();
		
		return empty($labels[$field])? '' : $labels[$field];
	}
}